package com.example.Controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/security")
@Slf4j

public class SecurityController {

    /**
     * Security 测试类  用来测试用户权限设置
     */

    @PostMapping("/user")
    public void check_1(){
        log.info("用户访问------------");
    }

    @PostMapping("/admin")
    public void check_2(){
        log.info("管理员访问-----------");
    }

}
